package com.slipper.sfts.api.stock.bo;

import java.util.Date;
import com.slipper.common.bo.CommonBO;

import java.math.BigDecimal;

public class StockOrderBO extends CommonBO {
    private static final long serialVersionUID = 1L;

    public static final int ORDER_TYPE_BUY = 23; // 买入
    public static final int ORDER_TYPE_SELL = 24; // 卖出

    public static final String STATUS_SUBMIT = "0"; // 已提交
    public static final String STATUS_SUBMIT_CANCEL = "1"; // 提交撤单
    public static final String STATUS_UNREPORTED = "48"; // 未报
    public static final String STATUS_WAIT_REPORTING = "49"; // 待报
    public static final String STATUS_REPORTED = "50"; // 已报
    public static final String STATUS_REPORTED_CANCEL = "51"; // 已报待撤
    public static final String STATUS_PARTSUCC_CANCEL = "52"; // 部成待撤
    public static final String STATUS_PART_CANCEL = "53"; // 部撤
    public static final String STATUS_CANCELED = "54"; // 已撤
    public static final String STATUS_PART_SUCC = "55"; // 部成
    public static final String STATUS_SUCCEEDED = "56"; // 已成
    public static final String STATUS_JUNK = "57"; // 废单
    public static final String STATUS_DETERMINED = "86"; // 已确认
    public static final String STATUS_UNKNOWN = "255"; // 未知

    /* 主键ID */
    private String id;
    /* 主键ID */
    private String[] ids;
    /* 会员ID */
    private String memberId;
    private String memberName;
    /* 交易账号ID */
    private String brokerAccountId;
    /* 资金账号 */
    private String accountId;
    /* 交易所代码 */
    private String exchangeCode;
    /* 交易所名称 */
    private String exchangeName;
    /* 委托类型 */
    private Integer orderType;
    /* 下单代码 */
    private String code;
    /* 下单名称 */
    private String name;
    /* 下单选价类型 */
    private Integer priceType;
    /* 下单价格 */
    private BigDecimal price;
    /* 下单数量 */
    private Integer volume;
    /* 下单Id */
    private Integer orderId;
    /* 状态 */
    private String status;
    /* 合同编号/委托号 */
    private String orderSysId;
    /* 冻结金额 */
    private BigDecimal freezeMoney;
    /* 冻结手续费 */
    private BigDecimal freezeCommission;
    /* 成交数量 */
    private Integer tradedVolume;
    /* 成交均价 */
    private BigDecimal tradedPrice;
    /* 成交金额 */
    private BigDecimal tradedAmount;
    /* 已撤数量 */
    private Integer cancelVolume;
    /* 废单原因 */
    private String cancelReason;
    /* 是否已完成：0、否，1、是 */
    private Integer finished;
    /* 更新时间 */
    private Date updateTime;
    /* 创建时间 */
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String[] getIds() {
        return ids;
    }

    public void setIds(String[] ids) {
        this.ids = ids;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getBrokerAccountId() {
        return brokerAccountId;
    }

    public void setBrokerAccountId(String brokerAccountId) {
        this.brokerAccountId = brokerAccountId;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getExchangeCode() {
        return exchangeCode;
    }

    public void setExchangeCode(String exchangeCode) {
        this.exchangeCode = exchangeCode;
    }

    public String getExchangeName() {
        return exchangeName;
    }

    public void setExchangeName(String exchangeName) {
        this.exchangeName = exchangeName;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPriceType() {
        return priceType;
    }

    public void setPriceType(Integer priceType) {
        this.priceType = priceType;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getVolume() {
        return volume;
    }

    public void setVolume(Integer volume) {
        this.volume = volume;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getOrderSysId() {
        return orderSysId;
    }

    public void setOrderSysId(String orderSysId) {
        this.orderSysId = orderSysId;
    }

    public BigDecimal getFreezeMoney() {
        return freezeMoney;
    }

    public void setFreezeMoney(BigDecimal freezeMoney) {
        this.freezeMoney = freezeMoney;
    }

    public BigDecimal getFreezeCommission() {
        return freezeCommission;
    }

    public void setFreezeCommission(BigDecimal freezeCommission) {
        this.freezeCommission = freezeCommission;
    }

    public Integer getTradedVolume() {
        return tradedVolume;
    }

    public void setTradedVolume(Integer tradedVolume) {
        this.tradedVolume = tradedVolume;
    }

    public BigDecimal getTradedPrice() {
        return tradedPrice;
    }

    public void setTradedPrice(BigDecimal tradedPrice) {
        this.tradedPrice = tradedPrice;
    }

    public BigDecimal getTradedAmount() {
        return tradedAmount;
    }

    public void setTradedAmount(BigDecimal tradedAmount) {
        this.tradedAmount = tradedAmount;
    }

    public Integer getCancelVolume() {
        return cancelVolume;
    }

    public void setCancelVolume(Integer cancelVolume) {
        this.cancelVolume = cancelVolume;
    }

    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }

    public Integer getFinished() {
        return finished;
    }

    public void setFinished(Integer finished) {
        this.finished = finished;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
